<?php
// +----------------------------------------------------------------------
// | 本程序使用thinkPHP框架
// +----------------------------------------------------------------------
// | 开发者：殇情
// +----------------------------------------------------------------------
// | 开源地址：https://gitee.com/sqnb/sqapi
// +----------------------------------------------------------------------
// | 联系邮箱：2180802265@qq.com
// +----------------------------------------------------------------------
function tian(){
$city=$_GET['city'];
$url="http://wthrcdn.etouch.cn/weather_mini?city=".$city;
$str = file_get_contents($url);
$result= gzdecode($str);
//end
echo $result;
}
tian();
?>